﻿@using QDT.Core
@model QDT.Core.Projects.RepaymentScheme
    
    <div id="RepayPlan" class="nav hide">
        <div class="font-size14">
            <table class="table">
                <thead>
                    <tr style="height: 40px;line-height: 40px;border-bottom: solid 1px #e5e5e5;">
                        <th class="td6" style="width: 30%">预期还款时间</th>
                        <th style="width: 25%">类型</th>
                        <th style="width: 30%">还款金额(元)</th>
                        <th style="width: 15%"></th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var m in Model.Stages)
                    {
                        <tr class="tr2">
                            <td class="td td6">@m.Time.ToString("yyyy-MM-dd")</td>
                            <td class="td">
                                @switch (m.RepayType)
                                {
                                    case 1:
                                        <span>利息</span>
                                        break;
                                    case 2:
                                        <span>本金</span>
                                        break;
                                    case 3:
                                        <span>本金和利息</span>
                                        break;
                                }
                            </td>
                            <td class="td">@m.Ammount.ToMoney()</td>
                            <td  class="td">
                                @if (m.IsRepay)
                                {
                                    <i class="iconfont" style="color: #27ae60;" title="成功还款">&#xf00b2;</i>
                                    <span>成功</span>
                                }
                                else
                                {
                                    <i class="iconfont" title="等待还款">&#xf00c4;</i>
                                    <span>待还</span>
                                }
                                
                            </td>
                        </tr>     
                    }
                </tbody>
            </table>
        </div>
    </div>